set JDK_HOME=C:\soft\java\jdk17
setlocal enabledelayedexpansion
REM 当前时间计算
for /f "tokens=2 delims==." %%a in ('wmic os get localdatetime /value') do set "dt=%%a"
set "YY=%dt:~0,4%"
set "MM=%dt:~4,2%"
set "DD=%dt:~6,2%"
set "HH=%dt:~8,2%"
set "Min=%dt:~10,2%"
set "Sec=%dt:~12,2%"
set "folder_name=%YY%-%MM%-%DD%_%HH%-%Min%-%Sec%-scp"
%JDK_HOME%\bin\jpackage.exe --name %folder_name% --input target\dist --main-jar smecta-client-print-v2-1.0-SNAPSHOT.jar --type app-image --dest target --icon ./dependencies/logo/scp.ico


xcopy /E /I .\dependencies target\%folder_name%\dependencies
xcopy /E /I .\src\main\resources\template target\%folder_name%\dependencies\template